<%@page import="java.util.List"%>
<%@page import="cn.com.entity.Consumer"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>

<form action="updateconsumer" method="post">
<h2 align="center">个人资料</h2>
<table>
<%

Consumer consumerlogin=(Consumer)session.getAttribute("consumerlogin");//获取存在session当中的对象
if(consumerlogin!=null){
%>
<tr>
<td>用户名：</td>
<td><%=consumerlogin.getConsumername() %></td>
</tr>
<tr>
<td>姓名：</td>
<td><%=consumerlogin.getRealname() %></td>
</tr>
<tr>
<td>年龄：</td>
<td><%=consumerlogin.getConsumerage() %></td>

</tr>
<tr>
<td>性别：</td>
<td><%=consumerlogin.getConsumersex() %></td>
</tr>
<tr>
<td>手机号码：</td>
<td>

<input type="hidden" value="<%=consumerlogin.getConsumerid() %>" name="consumer.consumerid"/>
<input type="hidden" value="<%=consumerlogin.getConsumername() %>" name="consumer.consumername"/>
<input type="hidden" value="<%=consumerlogin.getConsumerage() %>" name="consumer.consumerage"/>
<input type="hidden" value="<%=consumerlogin.getRealname() %>" name="consumer.realname"/>
<input type="hidden" value="<%=consumerlogin.getConsumersex() %>" name="consumer.consumersex"/>
<input type="text" name="consumer.consumerphone" id="" value="<%=consumerlogin.getConsumerphone() %>"></td>
</tr>
<tr>
<td>Email：</td>
<td><input type="text" name="consumer.consumeremail" id="" value="<%=consumerlogin.getConsumeremail()%>"></td>
</tr>
<tr>
<td>密码：</td>
<td><input type="text" name="consumer.consumerpwd" id="" value="<%=consumerlogin.getConsumerpwd() %>"></td>
</tr>
<tr>
<td></td>
<td><input name="xiugai" type="submit" value="保存"></td>
<%} %>
</tr>
</table>


</form>

</body>
</html>